home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
481a.lha
/
AMIGA C MANUAL_v2.00
/
CMAN2.LZH
/
HintsAndTips
/
Example4.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-01-27
|
482b
|
24 lines
/* Example 4 */
/* This program tells you if it was run from workbench or */
/* from a CLI window. */
void main();
void main( argc, argv )
int argc;
char *argv[];
{
int loop;
if( argc )
printf( "This program was started from a CLI window!\n" );
else
printf( "This program was started from Workbench!\n" );
/* Wait for a while: */
for( loop = 0; loop < 500000; loop++ )
;
}